﻿using System;
using System.Xml;

using NUnit.Framework;

namespace Yawf.Core.Xml {
	[TestFixture]
	public class XmlUtilsTest {
		[Test]
		public void TestReadXmlDocument() {
			XmlDocument xmlDoc;

			xmlDoc = XmlUtils.ReadXmlDocument("file://" + AppDomain.CurrentDomain.BaseDirectory + "/TestView.xml");
			Assert.IsNotNull(xmlDoc,"xmlDoc is null");
			Assert.IsNotNull(xmlDoc.DocumentElement,"xmlDoc.DocumentElement is null");
			Assert.AreEqual(xmlDoc.DocumentElement.Name,"vcgml","xmlDoc.DocumentElement.Name != 'vcgml'");
		}
	}
}
